package com.aya.dep;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

public class PrintClass {
    public PrintClass() {
        System.out.println("print class");

        try {
            ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
            Enumeration<URL> resources = contextClassLoader.getResources("/");
            while (resources.hasMoreElements()){
                URL emptyResource = resources.nextElement();
                System.out.println("empty:"+ emptyResource);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
